<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Created by site.php
 * Date: 29.11.13
 * User: Lesh
 */

class Controller_Site extends Controller_Template
{
	public $template = 'site/global';

	public function page($page)
	{
		$page = $page ? $page : 1;
		$limit = Kohana::$config->load('main')->get('page', 12);
		$offset = $limit * ($page - 1);
		return array('limit' => $limit, 'offset' => $offset, 'page' => $page);
	}
}